<?php
namespace Home\Model;
use Think\Model;

class AdminModel extends Model
{
	public function checkNamePwd($ckname,$ckpassword){
        
        $user = M("admin");
        $info = $user->getBy_mgname($ckname);
        if( !empty($info) ){
            if( $ckpassword == $info['password']){
                return $info;
            } else {
                return false;   
            }
        } else{
            return false;
        }
    }
} 